//
//  JMTenLocationManager.h
//  NewiOSProject
//
//  Created by apple on 2023/9/27.
//  Copyright © 2023 范智渊. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, TenAuthorizationStatus) {
    /**未确定*/
    TenAuthorizationStatusNotDetermined = 0,
    /**限制*/
    TenAuthorizationStatusRestricted,
    /**拒绝*/
    TenAuthorizationStatusDenied,
    /**同意授权*/
    TenAuthorizationStatusAuthorized,
};
@interface JMTenLocationManager : NSObject
/**系统定位权限*/
@property (nonatomic, readonly) CLAuthorizationStatus authorizationStatus;

/**单例方法*/
+(instancetype)shareManager;
/**
 唤起请求定位权限
 @param block 结果回调
 */
//定位
-(void)ten_requestLocationRequest:(void (^) (BOOL granted, CLAuthorizationStatus status))block;
-(TenAuthorizationStatus)locationStatus;
//广告
-(void)applyADSupport:(void (^)(BOOL granted, TenAuthorizationStatus status))block;
//联系人
-(void)applyContact:(void (^)(BOOL granted, TenAuthorizationStatus status))block;
-(TenAuthorizationStatus)addressBookStatus;
//提醒事项
-(void)applyRemind:(void (^)(BOOL granted, TenAuthorizationStatus status))block;
-(TenAuthorizationStatus)remindStatus ;
//日历
-(void)applyCalender:(void (^)(BOOL granted, TenAuthorizationStatus status))block;
-(TenAuthorizationStatus)calendarStatus;

//相机
-(void)applyCamera:(void (^)(BOOL granted, TenAuthorizationStatus status))block;
-(TenAuthorizationStatus)cameraStatue;
//相册
-(void)applyPhoto:(void (^)(BOOL granted, TenAuthorizationStatus status))block;
-(TenAuthorizationStatus)photoLibraryStatus;

-(void)showContactAuthAlert:(void(^)())completion;
-(void)showCustomAuthAlert;
@end


NS_ASSUME_NONNULL_END
